package com.example.factoryModel.abstractClass;

import org.springframework.stereotype.Component;

@Component
public class Chicken extends AbstractAnimal{


    @Override
   public void eat() {
        System.out.println("吃米!");
    }

    @Override
   public void call() {
        System.out.println("鸡你太美!!");
    }

    @Override
    String getAnimalName() {
        return "鸡";
    }
}
